{include file="public/header" /}
<body class="childrenBody">
	<form class="layui-form">
		<div class="layui-tab">
			<ul class="layui-tab-title">
				<li class="layui-this">基础信息</li>
				<li>技术参数</li>
				<li>产品附件</li>
				<li>产品图片</li>
				<li>尺寸信息</li>
				<li>互换编码</li>
				<li>适用范围</li>
			</ul>
			<div class="layui-tab-content">
				<!-- 基本信息 -->
				<div class="layui-tab-item layui-show" style="position:static;margin-top:10px;">
					<div class="layui-form-item">
						<label class="layui-form-label">产品编码</label>
						<div class="layui-input-block">
							<input type="text" name="ProductCode" class="layui-input" lay-verify="required" placeholder="请输入产品编码">
						</div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">产品名称</label>
						<div class="layui-input-block">
							<input type="text" name="ProductName" class="layui-input" lay-verify="required" placeholder="请输入产品名称">
						</div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">产品类型</label>
						<div class="layui-input-block">
							<select name="ProductType" lay-filter="selectType" lay-search>
								<option value="0">请选择产品类型</option>
								{volist name="ptype" id="f"}
									<option value="{$f.id}">{$f.type_name}</option>
								{/volist}
							</select>
						</div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">产品状态</label>
						<div class="layui-input-block">
							<select name="ProductSale" lay-search>
								<option value="0">请选择产品状态</option>
								{volist name="psale" id="f" key="k"}
									<option value="{$k}">{$f}</option>
								{/volist}
							</select>
						</div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">包装单位</label>
						<div class="layui-input-block">
							<input type="text" name="ProductDw" class="layui-input" lay-verify="required" placeholder="请输入包装单位 (单个/每箱/每托)">&nbsp;
						</div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">常规适用</label>
						<div class="layui-input-block">
							<textarea name="ProductCg" placeholder="请输入常规适用" class="layui-textarea"></textarea>
						</div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">产品备注</label>
						<div class="layui-input-block">
							<textarea name="ProductDemo" placeholder="请输入产品备注" class="layui-textarea"></textarea>
						</div>
					</div>
					<div class="layui-form-item">
						<div class="layui-inline">
							<label class="layui-form-label">是否启用</label>
							<div class="layui-input-block">
								<input type="checkbox" name="show" class="isShow" title="启用">
							</div>
						</div>
					</div>
				</div>
				<!-- 技术参数 -->
				<div class="layui-tab-item" style="position:static;margin-top:10px;">
					<div class="layui-form-item">
						{php}for($i=1;$i<=10;$i++){{/php}
							{php}$arr = array('一','二','三','四','五','六','七','八','九','十');{/php}
							<div class="layui-inline">
								<label class="layui-form-label">参数 {php}echo $arr[$i-1];{/php}</label>
								<div class="layui-input-inline" style="width: 300px;">
									<input name="param_title_{php}echo $i;{/php}" placeholder="请输入参数标题" autocomplete="off" class="layui-input" type="text">
								</div>
								<div class="layui-form-mid">~</div>
								<div class="layui-input-inline" style="width: 300px;">
									<input name="param_content_{php}echo $i;{/php}" placeholder="请输入参数内容" autocomplete="off" class="layui-input" type="text">
								</div>
							</div>
						{php} } {/php}
					</div>
				</div>
				<!-- 产品附件 -->
				<div class="layui-tab-item" style="position:static;margin-top:10px;">
					<div class="layui-form-item">
						<label class="layui-form-label">图纸</label>
						<div class="layui-upload-drag" id="ProudctTZ">
							<p>点击上传，或将文件拖拽到此处</p>
						</div>
						<blockquote class="layui-elem-quote layui-quote-nm" style="margin-top: 10px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;预览图
							<div class="layui-upload-list" id="TzDiv"></div>
						</blockquote>
						<input type="hidden" name="TzId" value="0" />
						<input type="hidden" name="TzName" value="" />
						<input type="hidden" name="TzUrl" value="" />
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">安装说明</label>
						<div class="layui-upload-drag" id="ProudctAZ">
							<p>点击上传，或将文件拖拽到此处</p>
						</div>
						<blockquote class="layui-elem-quote layui-quote-nm" style="margin-top: 10px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;预览图
							<div class="layui-upload-list" id="AzDiv"></div>
						</blockquote>
						<input type="hidden" name="AzId" value="0" />
						<input type="hidden" name="AzName" value="" />
						<input type="hidden" name="AzUrl" value="" />
					</div>
				</div>
				<!-- 产品图片 -->
				<div class="layui-tab-item" style="position:static;margin-top:10px;">
					<div class="layui-form-item">
						<div class="layui-inline">
							<label class="layui-form-label">图1</label>
							<div class="layui-upload-drag" id="ProudctImg1">
								<p>点击上传，或将文件拖拽到此处</p>
							</div>
						</div>
						<div class="layui-inline">
							<blockquote class="layui-elem-quote layui-quote-nm" style="margin-top: 10px;">预览图
								<div class="layui-upload-list" id="Img1Url"></div>
							</blockquote>
							<input type="hidden" name="Img1Id" value="0" />
							<input type="hidden" name="Img1Name" value="" />
							<input type="hidden" name="Img1Ourl" value="" />
						</div>
						<div class="layui-inline">
							<label class="layui-form-label">排序值</label>
							<div class="layui-input-block">
								<input type="text" name="Img1Sort" class="layui-input" lay-verify="required" placeholder="请输入排序值" value="0" >
							</div>
						</div>
						<div class="layui-inline">
							<label class="layui-form-label">是否水印</label>
							<div class="layui-input-block">
								<input type="radio" name="Img1Mark" value="1" title="是">
								<input type="radio" name="Img1Mark" value="0" title="否" checked >
							</div>
						</div>
					</div>
					<div class="layui-form-item">
						<div class="layui-inline">
							<label class="layui-form-label">图2</label>
							<div class="layui-upload-drag" id="ProudctImg2">
								<p>点击上传，或将文件拖拽到此处</p>
							</div>
						</div>
						<div class="layui-inline">
							<blockquote class="layui-elem-quote layui-quote-nm" style="margin-top: 10px;">预览图
								<div class="layui-upload-list" id="Img2Url"></div>
							</blockquote>
							<input type="hidden" name="Img2Id" value="0" />
							<input type="hidden" name="Img2Name" value="" />
							<input type="hidden" name="Img2Ourl" value="" />
						</div>
						<div class="layui-inline">
							<label class="layui-form-label">排序值</label>
							<div class="layui-input-block">
								<input type="text" name="Img2Sort" class="layui-input" lay-verify="required" placeholder="请输入排序值" value="0" >
							</div>
						</div>
						<div class="layui-inline">
							<label class="layui-form-label">是否水印</label>
							<div class="layui-input-block">
								<input type="radio" name="Img2Mark" value="1" title="是">
								<input type="radio" name="Img2Mark" value="0" title="否" checked >
							</div>
						</div>
					</div>
					<div class="layui-form-item">
						<div class="layui-inline">
							<label class="layui-form-label">图3</label>
							<div class="layui-upload-drag" id="ProudctImg3">
								<p>点击上传，或将文件拖拽到此处</p>
							</div>
						</div>
						<div class="layui-inline">
							<blockquote class="layui-elem-quote layui-quote-nm" style="margin-top: 10px;">预览图
								<div class="layui-upload-list" id="Img3Url"></div>
							</blockquote>
							<input type="hidden" name="Img3Id" value="0" />
							<input type="hidden" name="Img3Name" value="" />
							<input type="hidden" name="Img3Ourl" value="" />
						</div>
						<div class="layui-inline">
							<label class="layui-form-label">排序值</label>
							<div class="layui-input-block">
								<input type="text" name="Img3Sort" class="layui-input" lay-verify="required" placeholder="请输入排序值" value="0" >
							</div>
						</div>
						<div class="layui-inline">
							<label class="layui-form-label">是否水印</label>
							<div class="layui-input-block">
								<input type="radio" name="Img3Mark" value="1" title="是">
								<input type="radio" name="Img3Mark" value="0" title="否" checked >
							</div>
						</div>
					</div>
					<div class="layui-form-item">
						<div class="layui-inline">
							<label class="layui-form-label">图4</label>
							<div class="layui-upload-drag" id="ProudctImg4">
								<p>点击上传，或将文件拖拽到此处</p>
							</div>
						</div>
						<div class="layui-inline">
							<blockquote class="layui-elem-quote layui-quote-nm" style="margin-top: 10px;">预览图
								<div class="layui-upload-list" id="Img4Url"></div>
							</blockquote>
							<input type="hidden" name="Img4Id" value="0" />
							<input type="hidden" name="Img4Name" value="" />
							<input type="hidden" name="Img4Ourl" value="" />
						</div>
						<div class="layui-inline">
							<label class="layui-form-label">排序值</label>
							<div class="layui-input-block">
								<input type="text" name="Img4Sort" class="layui-input" lay-verify="required" placeholder="请输入排序值" value="0" >
							</div>
						</div>
						<div class="layui-inline">
							<label class="layui-form-label">是否水印</label>
							<div class="layui-input-block">
								<input type="radio" name="Img4Mark" value="1" title="是">
								<input type="radio" name="Img4Mark" value="0" title="否" checked >
							</div>
						</div>
					</div>
					<div class="layui-form-item">
						<div class="layui-inline">
							<label class="layui-form-label">图5</label>
							<div class="layui-upload-drag" id="ProudctImg5">
								<p>点击上传，或将文件拖拽到此处</p>
							</div>
						</div>
						<div class="layui-inline">
							<blockquote class="layui-elem-quote layui-quote-nm" style="margin-top: 10px;">预览图
								<div class="layui-upload-list" id="Img5Url"></div>
							</blockquote>
							<input type="hidden" name="Img5Id" value="0" />
							<input type="hidden" name="Img5Name" value="" />
							<input type="hidden" name="Img5Ourl" value="" />
						</div>
						<div class="layui-inline">
							<label class="layui-form-label">排序值</label>
							<div class="layui-input-block">
								<input type="text" name="Img5Sort" class="layui-input" lay-verify="required" placeholder="请输入排序值" value="0" >
							</div>
						</div>
						<div class="layui-inline">
							<label class="layui-form-label">是否水印</label>
							<div class="layui-input-block">
								<input type="radio" name="Img5Mark" value="1" title="是">
								<input type="radio" name="Img5Mark" value="0" title="否" checked >
							</div>
						</div>
					</div>
					<div class="layui-form-item">
						<div class="layui-inline">
							<label class="layui-form-label">图6</label>
							<div class="layui-upload-drag" id="ProudctImg6">
								<p>点击上传，或将文件拖拽到此处</p>
							</div>
						</div>
						<div class="layui-inline">
							<blockquote class="layui-elem-quote layui-quote-nm" style="margin-top: 10px;">预览图
								<div class="layui-upload-list" id="Img6Url"></div>
							</blockquote>
							<input type="hidden" name="Img6Id" value="0" />
							<input type="hidden" name="Img6Name" value="" />
							<input type="hidden" name="Img6Ourl" value="" />
						</div>
						<div class="layui-inline">
							<label class="layui-form-label">排序值</label>
							<div class="layui-input-block">
								<input type="text" name="Img6Sort" class="layui-input" lay-verify="required" placeholder="请输入排序值" value="0" >
							</div>
						</div>
						<div class="layui-inline">
							<label class="layui-form-label">是否水印</label>
							<div class="layui-input-block">
								<input type="radio" name="Img6Mark" value="1" title="是">
								<input type="radio" name="Img6Mark" value="0" title="否" checked >
							</div>
						</div>
					</div>
				</div>
				<!-- 产品尺寸 -->
				<div class="layui-tab-item" style="position:static;margin-top:10px;">
					<div class="layui-form-item" id="size_list">
						<label class="layui-form-label">尺寸</label>
						<div class="layui-input-block">
							<input type="text" name="" class="layui-input" lay-verify="required" placeholder="请先选择产品类型" disabled>
						</div>
					</div>
				</div>
				<!-- 产品互换编码 -->
				<div class="layui-tab-item" style="position:static;margin-top:10px;">
					<blockquote class="layui-elem-quote news_search">
						<div class="layui-inline">
							<a class="layui-btn layui-btn-normal" id="FactAdd_btn">导入</a>
						</div>
						<div class="layui-inline">
							<a class="layui-btn layui-btn-normal FactDel_btn">删除</a>
						</div>
					</blockquote>
					<table class="layui-table">
						<colgroup>
							<col width="40">
							<col>
							<col width="20%">
							<col width="20%">
							<col width="15%">
							<col width="20%">
						</colgroup>
						<thead>
							<tr>
								<th><input type="checkbox" name="" lay-skin="primary" lay-filter="allChooseCode"></th>
								<th>互换编码</th>
								<th>厂商编码</th>
								<th>厂商名称</th>
								<th>编码类型</th>
								<th>备注</th>
							</tr>  
						</thead>
						<tbody class="news_content" id="fact_list">
							<!--
							<tr>
								<td><input type="checkbox" name="checked" lay-skin="primary" lay-filter="choose"></td>
								<td>AASA</td>
								<td>CQHY</td>
								<td>CQHY</td>
								<td>售后市场</td>
								<td>此号码仅对于中国市场</td>
							</tr>-->
						</tbody>
						<input type="hidden" name="del_fact_codes" value="" />
					</table>
				</div>
				<!-- 产品适用范围 -->
				<div class="layui-tab-item" style="position:static;margin-top:10px;">
					<blockquote class="layui-elem-quote news_search">
						<div class="layui-inline">
							<a class="layui-btn layui-btn-normal MatorAdd_btn">添加</a>
						</div>
						<div class="layui-inline">
							<a class="layui-btn layui-btn-normal MatorDel_btn">删除</a>
						</div>
					</blockquote>
					<div class="layui-form news_list">
						<table class="layui-table">
							<colgroup>
								<col width="40">
								<col>
								<col width="10%">
								<col width="10%">
								<col width="8%">
								<col width="6%">
								<col width="6%">
								<col width="6%">
								<col width="6%">
								<col width="6%">
								<col width="6%">
								<col width="6%">
							</colgroup>
							<thead>
								<tr>
									<th><input type="checkbox" name="" lay-skin="primary" lay-filter="allChoose"></th>
									<th>ID</th>
									<th>车型库代码</th>
									<th>车型库名称</th>
									<th>制造商</th>
									<th>系列</th>
									<th>年份</th>
									<th>车型</th>
									<th>发动机</th>
									<th>排量</th>
									<th>功率</th>
									<th>马力</th>
									<th>类型</th>
									<th>起始年份</th>
								</tr> 
							</thead>
							<tbody id="mator_list">
								
							</tbody>
							<input type="hidden" name="del_mator_ids" value="0" />
						</table>
					</div>
				</div>
			</div>
		</div>
		<div class="layui-form-item">
			<div class="layui-input-block">
				<input type="hidden" name="product_id" class="" value="0">
				<button class="layui-btn" lay-submit="" lay-filter="addRole">立即提交</button>
				<button type="reset" class="layui-btn layui-btn-primary">重置</button>
		    </div>
		</div>
	</form>
	<script type="text/javascript" src="{$PUBLIC_STATIC_SRC.__Home_JS__}/product/productAdd.js"></script>
</body>
</html>